#ifndef REGIDIALOG_H
#define REGIDIALOG_H

#include <QDialog>
#include "ui_regidialog.h"
#include <QDir>
#include <QFileDialog>
#include <QMessageBox>
#include <QtGui>

class regidialog : public QDialog
{
	Q_OBJECT

public:
	regidialog(QWidget *parent = 0);
	~regidialog();

	void regidialog::openImage(QLineEdit *lineEditMain,QLineEdit *lineEditBackup);
	void createInterface();
	void connectSlots();
	bool okButtonClick;
	bool cancelButtonClick;

	QString image1FilePath;
	QString image2FilePath;

private slots:
	void inputImage1();
	void inputImage2();
	void okClick();
	void cancelClick();

private:
	Ui::regidialog ui;

	QLabel *image1Label;
	QLabel *image2Label;
	QLineEdit *image1LineEdit;
	QLineEdit *image2LineEdit;
	QPushButton *image1PushButton;
	QPushButton *image2PushButton;
	QPushButton *okPushButton;
	QPushButton *cancelPushButton;

};

class RegistrationOpenDialog:public QDialog
{
	Q_OBJECT
public:
	RegistrationOpenDialog(QWidget *parent = 0);
	~RegistrationOpenDialog();
	QString projectFullPath;
	QString projectName;
	QString imagePath;
	QString logFilePath;
	bool isOKButtonClicked;
private:
	QLabel *label;
	QLineEdit *lineEdit;
	QToolButton *toolButton;
	QDialogButtonBox *buttonBox;

	private slots:
		void setExistingDirectory();
		void OKButtonClicked();
		void CancelButtonClicked();
};
#endif // REGIDIALOG_H
